<%--
  Created by IntelliJ IDEA.
  User: yang
  Date: 2020/5/28
  Time: 11:20 上午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" session="true" errorPage="error.jsp" %>
<%-- jsp标签：page指令标签 --%>
<html>
<head>
    <title>jsp 练习</title>
</head>
<body>
<h1>html标签</h1>
<%
    int age = 19;
    System.out.println("age=" + age);
%>
<%--java片段--%>
<%!
    String name = "韩梅梅";

    public void sayHi() {
        System.out.println("name=" + name);
    }
%>
<%--java片段--%>
<h1>age=<%=age%>
    <%--  java 片段 --%>
</h1>

</body>
</html>
